package spring.beans.factory;

import spring.beans.config.BeanDefinition;

/**
 * 定义BeanDefinition注册表接口
 * 参数：bean的名称，BeanDefinition对象
 */
public interface BeanDefinitionRegistry {
    void registerBeanDefinition(String beanName, BeanDefinition beanDefinition);
    BeanDefinition getBeanDefinition(String beanName);
    boolean containsBeanDefinition(String beanName);

    void removeBeanDefinition(String beanName);
    String[] getBeanDefinitionNames();

    Class<?> getType(String beanName);
}
